/*
 * mhdirscanner.h
 *
 *  Created on: 2010-8-24
 *      Author: angelstone
 */

#pragma once

#include "addon/mhscanneraddon.h"

class wxDir;

namespace mediahouse {
	class CMHDirScanner: public CMHScannerAddon {
	public:
		virtual int CanScanPath(CMHContext * pContext,
				const wxString & strMediaPath, void * cookies);
		virtual int ScanPath(CMHContext * pContext, const wxString & strMediaPath,
				void * cookies);

	protected:
		int ProcessDir(CMHContext * pContext,
				const wxDir * p_dir,
				const wxString & base_location);
		int ProcessFile(CMHContext * pContext, void * cookie,
				const wxString & file_path,
				const wxString & base_location);

		wxString GetBaseLocation(CMHContext * pContext, const wxString & path);
	};
}
;
